<?php

namespace App\Models;

use App\Events\PlayerAddPollsEvent;
use App\Events\PlayerMinusPollsEvent;
use App\Models\Traits\BelongsToApplication;
use App\Models\Traits\BelongsToPlayer;
use App\Models\Traits\BelongsToUser;

class Like extends Model
{
    use BelongsToApplication,
        BelongsToUser,
        BelongsToPlayer;

    const UPDATED_AT = null;

    protected $dispatchesEvents = [
        'created' => PlayerAddPollsEvent::class,
        'deleted' => PlayerMinusPollsEvent::class,
    ];
}
